#include "tip.h"
#include "ui_tip.h"

tip::tip(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::tip)
{
    ui->setupUi(this);
    setWindowTitle("tip");
}

tip::~tip()
{
    delete ui;
}

void tip::show()
{
    QString displayString;
    displayString.append("红色为冲突文件，请手动选择>>或者<<以替换所指向的文件\n");
    displayString.append("绿色为相同文件\n");
    displayString.append("蓝色为一边独有文件\n");
    ui->textBrowser->clear();
    ui->textBrowser->setPlainText(displayString);
    ui->textBrowser->setTextColor("Red");
    this->exec();
}

void tip::on_pushButton_clicked()
{
    close();
}
